/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}


input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #666;
  font-size: 12px;
}

input:-moz-placeholder, textarea:-moz-placeholder {
  color: #666;
  font-size: 12px;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #666;
  font-size: 12px;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
  color: #666;
  font-size: 12px;
}



.header{
  background: rgb(21,123,203);
  width: 100%;
  height: 50px;
  color: white;
  font-size: 22px;
  font-weight: bold;
  font-family: 微软雅黑;
  line-height: 50px;
  text-indent:100px;
  letter-spacing:5px;
}


.im-window
{
  width: 100%;
  position: absolute;
  top: 50px;
  bottom: 0px;
  left: 0px;
}

.im-main
{
  /*height: 90%;*/
  /*width: 90%;*/
  background: white;
  position: absolute;
  top:30px;
  left: 80px;
  right: 80px;
  bottom: 30px;
  border-radius: 10px;
  min-width: 800px;

}


.im-header
{
  background: rgb(234,239,245);
  height: 50px;
  border-radius: 10px 10px 0 0;
}

.im-header div
{
  height: 30px;
  padding: 10px 20px;
}

.im-header .im-search
{
  border-radius: 4px;
  height: 20px;
  border: 1px solid rgb(222,222,222);
  padding: 5px 10px;
  font-size: 12pt;
}

.im-body
{
  position: absolute;
  top:50px;
  left: 0px;
  bottom: 0px;
  width: 100%;
}

.im-group-list
{
  float: left;
  width: 220px;
  height: 100%;
  border-right: 1px solid rgb(222,222,222);
  background: #f2f2ff;
  border-radius: 0 0 0 10px;
}

.im-chat-body
{
  float: left;
  height: 100%;
  position: absolute;
  left: 221px;
  top: 0px;
  right: 0px;
  border-radius: 0 0 10px 0;
}

.im-chat-title
{
  height: 50px;
  border-bottom: 1px solid rgb(222,222,222);
}

.im-chat-group-name
{
  float: left;
  font-size: 1.2em;
  text-indent: 20px;
  line-height: 50px;
}

.im-chat-group-menu
{
  float: right;
}

.im-chat-body-auto
{
  position: absolute;
  top:50px;
  left: 0px;
  bottom: 0px;
  width: 100%;
  border-radius: 0 0 10px 0;
}

im-chat-other-auto
{
  position: absolute;
  top:50px;
  left: 0px;
  bottom: 0px;
  width: 100%;
  border-radius: 0 0 10px 0;
  display: none;
}

.im-chat-other-list
{
  margin: 10px 15px;
}


.im-chat-main
{
  position: absolute;
  right:181px;
  left: 0px;
  top: 0px;
  height: 100%;
  border-radius: 0 0 10px 0;
}

.im-chat-list
{
  float: right;
  width: 180px;
  height: 100%;
  border-left: 1px solid rgb(222,222,222);
  border-radius: 0 0 10px 0;
}

.im-chat-message
{
  position: absolute;
  bottom: 151px;
  top: 0px;
  left: 0;
  width: 100%;
  overflow: auto;
}

.im-chat-message-list
{
  margin: 10px 15px;

}

.im-chat-edit
{
  height: 150px;
  position: absolute;
  bottom: 0px;
  width: 100%;
  border-top: 1px solid rgb(222,222,222);
}

.im-chat-list-title
{
  height: 30px;
  line-height: 30px;
  width: 100%;
  background: rgb(224,236,245);
  border-bottom: 1px solid rgb(222,222,222);
  border-top: 1px solid rgb(222,222,222);
  text-indent: 10px;
  font-size: 0.8em;
}

.im-chat-list-details
{
  float: right;
  position: absolute;
  top:32px;
  bottom: 0px;
  width: 180px;
  border-radius: 0 0 10px 0;
}


ul,li{
  list-style: none;
  margin: 0;
  padding: 0;
}

.ul-group-list li
{
  height: 30px;
  padding: 10px 20px;
  line-height: 30px;
  font-size: 0.8em;
}

.ul-group-list li:hover,.ul-chat-list li:hover
{
  cursor: pointer;
  background: rgb(213,234,255);
}

.ul-group-list li.active,ul-chat-list li.active
{
  background: rgb(213,234,255);
}

.ul-group-list li span{

  border-radius: 3px;
  background: rgb(104,174,239);
  color: white;
  font-size: 1em;
  font-family: 微软雅黑;
  font-weight: bold;
  display: inline-block;
  padding: 0 10px;
  margin-right: 10px;

}

.ul-chat-list li img{

  border-radius: 10px;
  margin: 0 7px 3px 0;
  padding: 0;
}



.ul-chat-list li
{
  height: 22px;
  padding: 5px 10px;
  line-height: 22px;
  font-size: 0.8em;
}

.ul-group-menu li{
  float: left;
  border-radius: 20px;
  border: 1px solid rgb(75,164,255);
  margin: 12px 15px 12px 0;
  padding: 1px 10px;
  font-size: 0.9em;
}

.ul-group-menu li:hover{
  background: rgb(75,164,255);
  color: white;
  cursor: pointer;
}

.ul-group-menu li.active
{
  background: rgb(75,164,255);
  color: white;
}

.im-chat-edit-menu
{
  height: 20px;
  width: 100%;
}

.im-chat-edit-menu img
{
  margin:5px 0 5px 10px;
}


.im-chat-edit-text
{
  height: 70px;
  width: 100%;
  padding: 10px 15px;
  overflow: auto;
}

.im-chat-edit-btn
{
  height: 40px;
  width: 100%;
  text-align: right;
}

.im-chat-edit-btn button
{
  background: rgb(75,164,255);
  border-radius: 3px;
  border: 0;
  padding: 5px 13px;
  color: white;
  font-size: 0.8em;
  cursor: pointer;
  margin: 7px 20px;
}

